package com.innovations.inn.domain;

import com.innovations.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 消息通知对象 message_notification
 *
 * @author dp
 * @date 2024-08-09
 */
@Data
public class MessageNotification {
    private static final long serialVersionUID = 1L;

    /**
     * 消息标识
     */
    private Long messageNotificationId;

    /**
     * 消息标识
     */
    @Excel(name = "消息标识")
    private Long messageId;

    /**
     * 接收人
     */
    @Excel(name = "接收人")
    private Long receiveBy;

    /**
     * 是否接受;1：是；0：否；
     */
    @Excel(name = "是否接受;1：是；0：否；")
    private Long isReceived;

    /**
     * 创建人
     */
    private Long createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 逻辑删除;1：是；0：否；
     */
    @Excel(name = "逻辑删除;1：是；0：否；")
    private Long isDeleted;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("messageNotificationId", getMessageNotificationId())
                .append("messageId", getMessageId())
                .append("receiveBy", getReceiveBy())
                .append("isReceived", getIsReceived())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("isDeleted", getIsDeleted())
                .toString();
    }
}
